import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description: 不完整的算式
 * User: DELL
 * Date: 2024-05-03
 * Time: 20:14
 */
public class Main4 {
    static String[] nums;

    /**
     * 本题纯纯模拟，细心即可
     *
     * @param args
     */
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        String[] strs = str.split("=");
        char op = split(strs[0]);
        if (strs[1].charAt(0) == '?') {
            // 缺失结果
            int num1 = Integer.parseInt(nums[0]);
            int num2 = Integer.parseInt(nums[1]);
            if (op == '+') {
                System.out.println(num1 + num2);
            } else if (op == '-') {
                System.out.println(num1 - num2);
            } else if (op == '*') {
                System.out.println(num1 * num2);
            } else {
                System.out.println(num1 / num2);
            }
        } else if (op == '?') {
            // 缺失 op
            int num1 = Integer.parseInt(nums[0]);
            int num2 = Integer.parseInt(nums[1]);
            int res = Integer.parseInt(strs[1]);
            if (num1 + num2 == res) {
                System.out.println("+");
            } else if (num1 - num2 == res) {
                System.out.println("-");
            } else if (num1 * num2 == res) {
                System.out.println("*");
            } else {
                System.out.println("/");
            }
        } else {
            if (nums[0].equals("?")) {
                // 缺失第一个数
                int num = Integer.parseInt(strs[1]);
                if (op == '+') {
                    System.out.println(num - Integer.parseInt(nums[1]));
                } else if (op == '-') {
                    System.out.println(num + Integer.parseInt(nums[1]));
                } else if (op == '*') {
                    System.out.println(num / Integer.parseInt(nums[1]));
                } else {
                    System.out.println(num * Integer.parseInt(nums[1]));
                }
            } else {
                // 缺失第二个数
                int num = Integer.parseInt(strs[1]);
                if (op == '+') {
                    System.out.println(num - Integer.parseInt(nums[0]));
                } else if (op == '-') {
                    System.out.println(Integer.parseInt(nums[0]) - num);
                } else if (op == '*') {
                    System.out.println(num / Integer.parseInt(nums[0]));
                } else {
                    // 缺失第二个数且为除法时需要将结果除一下
                    System.out.println(Integer.parseInt(nums[0]) / num);
                }
            }
        }

    }

    private static char split(String str) {
        if (str.contains("+")) {
            nums = str.split("\\+");
            return '+';
        } else if (str.contains("-")) {
            nums = str.split("-");
            return '-';
        } else if (str.contains("*")) {
            nums = str.split("\\*");
            return '*';
        } else if (str.contains("/")) {
            nums = str.split("/");
            return '\\';
        } else if (str.contains("?")) {
            nums = str.split("\\?");
            return '?';
        }
        return 'a';
    }
}
